/**
 * Copyright(c) kyle.
 */
package org.example.jvm.remote_executor;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

/**
 * 测试
 *
 * @author kyle
 * @version 1.00.00
 * @since [2020-12-05 16:45]
 * @updateUser [Kyle]
 * @updateRemark [说明本次修改内容]
 * @date [2020-12-05 16:45]
 */
public class ExcutorTest {
    public static void main(String[] args) throws IOException{
        try {
            InputStream is = new FileInputStream("D:\\gitee\\JavaLearning\\target\\classes\\org\\example\\App.class");
            byte[] b = new byte[is.available()];

            is.read(b);
            is.close();
            System.out.println("<texstarea style='width:100lheight=800'>");
            System.out.println(JavaclassExecuter.execute(b));
            System.out.println("</texstarea>");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
